﻿<style>
label{
	padding-top:7px;
	display:block;
	float:left;
	text-align:right;
}
form.area1{
	padding:3px;
	float:left;
}
form.area1 fieldset{
	float:left;
	border:1px solid #aaa;
}
input#filter_btn{
	margin:5px 0px 5px 5px;
}
input#clear_btn{
	margin:5px 0px 5px 100px;
}
.area img{
	margin-right:20px;
}
table tr.head td{
	background:Highlight;
	color:HighlightText;
	font-weight:bolder;
	text-align:center;
}
table tr td{
	border-right:1px solid #aaa;
	border-bottom:1px solid #aaa;
	padding:3px 5px;
}
table tr:hover{
	background:#fff;
}
table tr td:first-child{
	border-left:1px solid #aaa;
}
div#filter_status{
	font-size:10px;
	margin:0px 10px;
	float:left;
	color:#aaa;
}
div#status{
	color:#999999;
	padding:0px 10px;
	float:left;
}
</style>
<h1>Izdati ugovori</h1>
<form class="area1" method="post" action="javascript:filterReport(document.getElementById('filter_btn'),1)">
	<fieldset>
	  <legend>Datum:</legend>
		<label for="start_date">OD:</label><input maxlength="10" name="start_date" type="text" id="start_date" value="{{$start}}" rule="^(\d{2}\.\d{2}\.\d{4}){0,1}$" />
		<img src="gui/icon_datepicker.gif" class="datePicker" title="Odaberi datum" onClick="displayDatePicker('start_date',this)" /><br clear="all" />
		<label for="end_date">DO:</label><input maxlength="10" name="end_date" type="text" id="end_date" value="{{$end}}" rule="^(\d{2}\.\d{2}\.\d{4}){0,1}$" />
		<img src="gui/icon_datepicker.gif" class="datePicker" title="Odaberi datum" onClick="displayDatePicker('end_date',this)" />
	</fieldset>
	<div style="float:left">
		<label style="width:80px;" for="filter_br_ugo">Broj ugovora:</label><input value="{{$filter_br_ugo}}" type="text" maxlength="10" name="filter_br_ugo" id="filter_br_ugo" />
		<br clear="all" />
		<label style="width:80px;" for="filter_radnik">Radnik:</label><input value="{{$filter_radnik}}" rule="^[^\d]{0,}$" type="text" name="filter_radnik" id="filter_radnik" /><br clear="all" />
		<input id="clear_btn" type="button" onClick="clearFilter(this,'filter_btn')" value="CLEAR" />
		<!--<input id="filter_btn" type="button" onClick="filterReport(this,1)" value="FILTER" />-->
		<input id="filter_btn" type="submit" value="FILTER" />
	</div>
</form>
<div class="small" id="status" style="{{$info_display}}">
<input type="button" class="excel" value="Export" onclick="exportCSV(document.getElementById('ugovoriIzdavanjeTable'),'menadzerReport')" /><br clear="all" />
{{$status}}
</div>
<br clear="all" />
<div class="area">
{{$nores_start_comment}}
<table id="ugovoriIzdavanjeTable">
<tr class="head">
	<td>datum</td>
	<td>broj ugovora</td>
	<td>predračuna</td>
	<td>radnik</td>
	<td>komentar</td>
	<td>storno</td>
</tr>
{{%loop start issue_ugo}}
<tr>
	<td>{{$issue_date}}</td>
	<td>{{$issue_ugo}}</td>
	<td>{{$issue_pr}}</td>
	<td>{{$issue_radnik}}</td>
	<td>{{$issue_komentar}}</td>
	<td style="text-align:center;">{{$storno}}</td>
</tr>
{{%loop end}}
</table>
{{$nores_end_comment}}
{{$nores_message}}
</div>
<script>
setInputRules();
</script>